﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ModuleControlEdit.ascx.cs"
    Inherits="Portal.Administrator.Modules.ModuleControlEdit" %>
<%@ Register Assembly="NCS.WebControl" Namespace="NCS.WebControls" TagPrefix="cc3" %>
<%@ Register Assembly="NCS.Module.MultiLanguage" Namespace="NCS.Module.MultiLanguage.WebControls"
    TagPrefix="cc2" %>
<%@ Register Assembly="NCS.FilePickerControl" Namespace="NCS.FilePicker"
    TagPrefix="cc1" %>
    <%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelModuleControlEdit" runat="server" UpdateMode="Conditional" RenderMode="Inline">
   
    <ContentTemplate>
        <table border="0" cellpadding="2" cellspacing="2" class="InputBox" style="width: 100%">
            <tr>
                <td>
                    <asp:Label ID="lblName" runat="server" Text="Tên module" meta:resourcekey="lblNameResource1"></asp:Label></td>
                <td>
                    <asp:Label ID="lblModuleName" runat="server" Font-Bold="True" meta:resourcekey="lblModuleNameResource1"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblControlName" runat="server" Text="Tên control" meta:resourcekey="lblControlNameResource1"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtControlName" runat="server" Width="276px" meta:resourcekey="txtControlNameResource1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtControlName"
                        ErrorMessage="Chưa nhập tên control" meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblControlTitle" runat="server" Text="Control Title" meta:resourcekey="lblControlTitleResource1"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtControlTitle" runat="server" Width="276px" meta:resourcekey="txtControlTitleResource1"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblCommand" runat="server" Text="Lệnh" meta:resourcekey="lblCommandResource1"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtControlKey" runat="server" Width="276px" meta:resourcekey="txtControlKeyResource1"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblPath" runat="server" Text="Đường dẫn" meta:resourcekey="lblPathResource1"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="dropPath" runat="server" Width="418px" meta:resourcekey="dropPathResource1">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="height: 24px">
                    <asp:Label ID="lblSymbol" runat="server" Text="Biểu tưởng" meta:resourcekey="lblSymbolResource1"></asp:Label></td>
                <td style="height: 24px">
                    <cc1:FilePicker ID="txtControlIcon" runat="server" fpPopupURL="/FilePicker/TUFilePicker.aspx"
                        Width="313px" FileName="" fpAllowedUploadFileExts="" fpUploadSizeLimit="0" meta:resourcekey="txtControlIconResource1"></cc1:FilePicker></td>
            </tr>
            <tr>
                <td style="height: 24px">
                    <asp:Label ID="lblHeaderVisible" runat="server" Text="Hiển thị header" meta:resourcekey="lblHeaderVisibleResource1"></asp:Label></td>
                <td style="height: 24px">
                    <asp:CheckBox ID="chkControlHeader" runat="server" Checked="True" meta:resourcekey="chkControlHeaderResource1" /></td>
            </tr>
            <tr>
                <td style="height: 19px" valign="top">
                    <asp:Label ID="lblRoles" runat="server" Text="Quyền truy cập" meta:resourcekey="lblRolesResource1"></asp:Label></td>
                <td style="height: 19px">
                    <asp:CheckBoxList ID="chkControlType" runat="server" CellPadding="0" CellSpacing="0"
                        DataTextField="RoleName" DataValueField="RoleID" meta:resourcekey="chkControlTypeResource1">
                    </asp:CheckBoxList></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblDesc" runat="server" Text="Mô tả" meta:resourcekey="lblDescResource1"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtControlDescription" runat="server" Height="103px" TextMode="MultiLine"
                        Width="309px" meta:resourcekey="txtControlDescriptionResource1"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblOrder" runat="server" Text="Thứ tự" meta:resourcekey="lblOrderResource1"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="dropControlOrder" runat="server" Width="79px" meta:resourcekey="dropControlOrderResource1">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 24px">
                    &nbsp;<cc3:ButtonRoleEdit ID="btnUpdate" runat="server" OnClick="btnUpdate_Click"
                        Text="Cập nhật" CssClass="Button" />
                    <cc3:ButtonRoleDelete ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="Xóa"
                        CssClass="Button" CausesValidation="False" />&nbsp;
                    <asp:Button ID="btnCancel" runat="server" CssClass="Button" Text="Hủy" Width="70px"
                        OnClick="btnCancel_Click" meta:resourcekey="btnCancelResource1" CausesValidation="False" />
                        
                    <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"
                        meta:resourcekey="lblUpdateStatusResource1"></asp:Label></td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
